#Declare project - "rub_shoulders_demo"
project("rub_shoulders_demo")

#Declare version.
cmake_minimum_required(VERSION 0.1)

#Compile options:
# Take almost all warnining;
# Take warnings as errors;
# Optimization level 2;
#add_definitions("-Wall -Werror -Wno-deprecated -Werror -O2")
#add_definitions("-g -Wall -Wno-deprecated -Werror")
add_definitions("-g -Wall -Wno-unused-variable -Wno-deprecated -Werror -rdynamic -D_HTTP_TEST -D_DEBUG -D_CORE_DEBUG -D_DEBUG_VERSION")

#Declare project binary/library directory.
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)

#Set include paths.
include_directories(
  "${PROJECT_SOURCE_DIR}"
  "${PROJECT_BINARY_DIR}"
  "${PROJECT_SOURCE_DIR}/src"
  )

#Add subdirectory.
add_subdirectory(src/core)
add_subdirectory(src/demo)

